@import url('https://fonts.googleapis.com/css2?family=Poiret+One&display=swap');

.poiret-one-regular {
    font-family: "poiret-one", sans-serif;
    font-weight: 400;
    font-style: normal;
  }

  html {
    scroll-behavior: smooth;
  }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#canvas1 {
    position: fixed;
    background: rgb(16, 20, 21);
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

body {
    margin: 0;
    font-family: "Poiret One", serif;
}

.section {
    min-height: 100vh;
    z-index: 2;
}

.navbar {
    position: fixed;
    display: flex;
    flex-direction: column;
    width: 200px;
    background-color: #00ffe17b;
    height: 100vh;
    padding: 2rem 0;
    backdrop-filter: sepia(90%);
    transform: translateX(-1000px);
    transition: transform 0.3s ease;
    z-index: 1;
}

.navbar.open {
    transform: translateX(0);
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 2rem;
    width: 2.5rem;
    cursor: pointer;
    margin-left: 20px;
    position: fixed;
    top: 20px;
    left: 10px;
    z-index: 10;
    transform: rotate(0);
    transition: transform 0.3s ease-out;
}

.hamburger-line {
    background-color: #00ffe1;
    box-shadow: 2px 2px 2px #000000e4;
    height: 0.4rem;
}

.hamburger.rotate {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin-top: 3rem;
    margin-left: 20px;
    text-align: left;
}

.nav-links li {
    margin: 3rem 0;
}

.nav-links a {
    text-decoration: none;
    font-size: 2rem;
    color: black;
    font-family: "Poiret One", serif;
    position: relative;
    z-index: 1;
}

.nav-links a:hover {
    color: #00b9a3;
    text-shadow: 1px 1px 2px black;
}

.nav-links a.active {
    color: #00ffe1;
    text-shadow: 1px 1px 2px black;
}

.nav-links a.active::before {
    color: #005a50;
    content: '';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    width: 300px;
    background-color: #002f2973;
    z-index: -1;
    box-shadow: 2px 2px 2px black;
}

.nav-links a.active::before {
    transition: all 0.3s ease;
}

/* Media Query for Mobile Devices */
@media screen and (max-width: 800px) {
    /* Navbar */
    .navbar {
        width: 160px;
        padding: 1rem 0;
    }

    /* Hamburger Menu */
    .hamburger {
        width: 2rem;
        height: 1.5rem;
        top: 10px;
        left: 10px;
    }

    .hamburger-line {
        height: 0.3rem;
    }

    /* Nav Links */
    .nav-links {
        margin-left: 10px;
        margin-top: 2rem;
    }

    .nav-links a {
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    /* Active Link Background */
    .nav-links a.active::before {
        left: -20px;
        width: 200px;
    }

    /* General Body Font */
    body {
        font-size: 1rem;
    }

    /* Sections */
    .section {
        padding: 2rem;
    }

    /* Additional Adjustments for Layout */
    #canvas1 {
        height: auto;
    }
}
